home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Qoole for Quake
/
Qoole for Quake (USA)
/
Qoole for Quake (USA).bin
/
Tutorial
/
HTML
/
QUBE.ZIP
/
SRC
/
THREADS.H
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-11-05
|
333 b
|
18 lines
#ifdef __alpha
#include <pthread.h>
extern pthread_mutex_t *my_mutex;
#define LOCK pthread_mutex_lock (my_mutex)
#define UNLOCK pthread_mutex_unlock (my_mutex)
#else
#define LOCK
#define UNLOCK
#endif
extern int numthreads;
typedef void (threadfunc_t) (void *);
void InitThreads (void);
void RunThreadsOn ( threadfunc_t func );